def outer(logo):
    def inner(msg):
        print(f"<{logo}>{msg}<{logo}>")

    return inner


fn1 = outer("xxxx")
fn1('大家好')


def outer1(num1):
    def inner1(num12):
        nonlocal num1
        num1 += num12
        print(num1)

    return inner1


fn2 = outer1(10)
fn2(10)
